// 用户头像登录判断
var user_icon = document.getElementsByClassName("user-icon")[0];
var user_list = document.getElementsByClassName("user-list")[0];
var bool = localStorage.getItem("bool");
if(bool==1){
    user_icon.style.backgroundSize="42px";
    user_list.innerHTML="注销";
}
user_list.addEventListener("click",function(){
    if(user_list.innerHTML=="注销"){
        user_icon.style.backgroundSize="0px";
        localStorage.setItem("bool",0);
        user_list.innerHTML="登录";
    }else{
        window.location.href="login.html";
    }
})